<!DOCTYPE html>
<html lang="">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1.0">
		<meta http-equiv="Expires" content="0">
		<meta http-equiv="Pragma" content="no-cache">
		<meta http-equiv="Cache-control" content="no-cache">
		<meta http-equiv="Cache" content="no-cache">
		<title>APP</title>

		<style type="text/css">
			body,html { margin: 0; padding: 0; }
			body { color: #333; font-size: 13px; background-color: #FFF; }
			a { color: #333; text-decoration: none; outline: none; }
			img { border: 0; }
		</style>

	</head>

	<body>

		<img src="dl.jpg" style="display: block; width: 100%; height: auto;" />

		<script type="text/javascript">
			function getQuery(name) {
				var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
				var r = window.location.search.substr(1).match(reg);
				if (r != null) return unescape(r[2]);
				return null;
			}
		</script>

		<script type="text/javascript">
			var url = 'http://app.yydj.zqxl.vip/dl/';

			// 无参数强制刷新
			var v = getQuery('v');
			if (!v) {
				window.location.href = url + '?v=' + Math.random()
			}

			// 下载
			if (/(MicroMessenger)/i.test(navigator.userAgent)) {
				// alert('weixin'); 
			} else if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
				// alert('iOS'); 
				// location.href = "/static/app.mobileconfig";
				location.href = "/";
			} else if (/(Android)/i.test(navigator.userAgent)) {
				// alert('Android'); 
				location.href = "/static/app.apk";
			} else {
				// alert('PC');
			};
		</script>
	</body>
</html>
